<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/usercenter.css" rel="stylesheet" type="text/css"/>
</block>

<block name="body">
    <div class="col-md-12 usercenter">
        <div class="uc">
            <include file="_top"/>
            <include file="_top_menu"/>

            <div class="row uc_content">
                <div class="col-md-7 col-xs-12">
                    <div class="row">
                        <div class="col-xs-12 uc_fans" style="margin-left: 10px;">
                            <ul class="nav nav-pills ucenter-tab">
                                <li <eq name="tab" value="rank"> class="active"</eq>><a href="{:U('Ucenter/Index/rank',array('uid'=>$uid))}"

                                    >
                                    已拥有头衔</a></li>
                                <if condition="$uid eq is_login()">
                                    <li <eq name="tab" value="rankVerifyWait"> class="active"</eq>><a href="{:U('Ucenter/Index/rankVerifyWait')}"

                                        >
                                        待审核头衔</a></li>
                                    <li <eq name="tab" value="rankVerifyFailure"> class="active"</eq>><a href="{:U('Ucenter/Index/rankVerifyFailure')}"

                                        >
                                        申请失败头衔</a></li>
                                    <li <eq name="tab" value="rankVerify"> class="active"</eq>><a href="{:U('Ucenter/Index/rankVerify')}"

                                        >
                                        申请头衔</a></li>
                                </if>
                            </ul>
                        </div>
                    </div>
                    <if condition="count($rankList) eq 0"><p class="text-muted"
                                                             style="text-align: center; font-size: 3em;">
                        <br><br>
                        暂无该类型头衔哦～
                        <br><br><br>
                    </p></if>
                    <div style="margin: 20px 0 20px 20px;">
                        <volist name="rankList" id="rank">
                            <div class="row"
                                 style="border-bottom: 1px solid #dedede;padding-bottom: 20px;padding-top:20px;margin-left: 0;margin-right: 0">
                                <div class="col-xs-2">
                                    <img style="width: 18px;margin-top: 30px;margin-left: 25px"
                                         src="{$rank.logo|get_cover='path'}"/>
                                </div>
                                <div class="col-xs-8">
                                    <div>
                                        头衔名称：{$rank.title}
                                    </div>
                                    <div style="margin-top: 10px;">
                                        理由：{$rank.reason}
                                    </div>
                                    <div style="margin-top: 10px;">
                                        申请时间：{$rank.create_time|friendlyDate}
                                    </div>
                                </div>
                                <div class="col-xs-2">
                                    <eq name="tab" value="rankVerifyWait"> <a class="btn btn-primary" href="{:U('Ucenter/Index/rankVerifyCancel',array('rank_id'=>$rank['rank_id']))}">取消申请</a> </eq>
                                    <eq name="tab" value="rankVerifyFailure"> <a class="btn btn-primary" href="{:U('Ucenter/Index/rankVerify',array('rank_user_id'=>$rank['id']))}">重新申请</a> </eq>
                                </div>
                            </div>
                        </volist>
                    </div>
                </div>
                <div class="col-md-5 col-sm-9 col-xs-12 uc_other_link">
                    <include file="_right_link"/>
                </div>
            </div>
        </div>
    </div>
</block>

